<html>
<body>
Reports <code>isEmpty</code>, <code>isBlank</code>, <code>isNotEmpty</code>, or <code>isNotBlank</code> calls in an <code>if</code> statement to assign a default value.
<p>The quick-fix replaces the <code>if</code> condition with <code>ifEmpty</code> or <code>ifBlank</code> calls.</p>
<p><b>Example:</b></p>
<pre><code>
  fun test(list: List&lt;Int&gt;): List&lt;Int&gt; {
      return if (list.isEmpty()) {
          println()
          foo()
      } else {
          list
      }
  }
</code></pre>
<p>After the quick-fix is applied:</p>
<pre><code>
  fun test(list: List&lt;Int&gt;): List&lt;Int&gt; {
      return list.ifEmpty {
          println()
          foo()
      }
  }
</code></pre>
<!-- tooltip end -->
<p>This inspection only reports if the Kotlin language version of the project or module is 1.3 or higher.</p>
</body>
</html>